//
//  HWApplyGameCell.m
//  HWPromoteProjectAPP
//
//  Created by 陈道斌 on 2020/3/3.
//  Copyright © 2020 陈道斌. All rights reserved.
//

#import "HWApplyGameCell.h"

@interface HWApplyGameCell()
@property (weak, nonatomic) IBOutlet UIImageView *icoimageView;
@property (weak, nonatomic) IBOutlet UILabel *mingchengLabel;
@property (weak, nonatomic) IBOutlet UILabel *shuduanLabel;
@property (weak, nonatomic) IBOutlet UILabel *shouyoufenchengBilieLabel;
@property (weak, nonatomic) IBOutlet UILabel *riqiLabel;
@property (weak, nonatomic) IBOutlet UIView *beijingweueuView;

@end


@implementation HWApplyGameCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.shuduanLabel.layer.cornerRadius = 8;
    self.shuduanLabel.layer.masksToBounds = YES;
    
    self.beijingweueuView.layer.cornerRadius = 12;
    self.beijingweueuView.layer.masksToBounds = YES;
    
    [self.shuduanLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(self.riqiLabel.mas_left).offset(-5);
        
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(HWApplyGameModel *)model {
    
    _model = model;
    
    [self.icoimageView sd_setImageWithURL:[NSURL URLWithString:model.icon] placeholderImage:nil];
    self.mingchengLabel.text = [NSString stringWithFormat:@"%@",model.name];
    self.shuduanLabel.text =  [NSString stringWithFormat:@"%@",model.system];
    self.shouyoufenchengBilieLabel.text = [NSString stringWithFormat:@"%@/分成比例：%@",model.system_type,model.fcbl];
    self.riqiLabel.text = [NSString stringWithFormat:@"%@\n%@",model.time1,model.time2];
    
    
    
     
    
    
}

@end
